import request from "@/utils/request";

export function getProcessByPage(query) {
  return request({
    url: `/system/process/getProcessByPage`,
    method: "post",
    data: query,
  });
}

// 增加流程模型

export function addProcess(query) {
  return request({
    url: `/system/process/addProcess`,
    method: "post",
    data: query,
  });
}
/**
 *
 * @param {*} query
 * @returns
 */
export function delProcess(query) {
  return request({
    url: `/system/process/delProcess`,
    method: "post",
    data: query,
  });
}

export function updateProcess(query) {
  return request({
    url: `/system/process/updateProcess`,
    method: "post",
    data: query,
  });
}
